package com.gree.scmservice.service.saas;

import com.gree.common.entity.ReturnVo;
import com.gree.common.entity.TablePageData;
import com.gree.scmservice.entity.saas.SaasSysAddon;
import com.gree.scmservice.entity.saas.vo.SaasSysAddonVo;
import com.gree.scmservice.entity.smbse.SysMenuMo;
import org.nutz.dao.entity.Record;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.List;


public interface SaasAddonService {

    int addPlugin(SaasSysAddon saasSysAddon);

    int updatePlugin(SaasSysAddonVo saasSysAddonVo);

    int deletePlugin(Long id);

    int deleteSaasSysAddonByIds(Long[] addonIds);

    TablePageData<SaasSysAddon> selectPluginPage(SaasSysAddon saasSysAddon);

    SaasSysAddon selectById(Long id);

    ReturnVo uploadIcon(MultipartFile file, String addonId);

    void downloadIcon(String icon, HttpServletResponse response);

    int menuInsertAddUpdate(String addon_id, String[] tenos);

    ArrayList getMenuFromAddon();

    List<Integer> selectMenuListByAddonId(Long AddonId);
}
